<template>
  <el-card class="common-card">
    <div class="card-top">
      <div class="card-title">{{title}}</div>
      <div class="card-num">{{value}}</div>
    </div>
    <div class="card-value">
      <slot></slot>
    </div>
    <div class="card-line"></div>
    <div class="card-buttom">
      <slot name="footer"></slot>
    </div>
  </el-card>
</template>

<script lang="ts">
export default {
  name: "ComponentCard"
}
</script>
<script lang="ts" setup>
const props = defineProps(['title','value'])
</script>
<style lang="scss" scoped>
.common-card{
  .card-top{
    .card-title{
      font-size: 12px;
      color:#999;
    }
    .card-num{
      font-size:25px;
      margin: 5px 0;
      letter-spacing: 1px;
    }
  }
  .card-value{
    height: 50px;
    font-size: 14px;
  }
  .card-line{
    border: 1px double #eee;
    margin: 10px 0;
  }
  .card-buttom{
    font-size: 12px;
    margin-top: 10px;
  }
}
</style>